﻿using ARchGL.Platform.Core;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Text;
using ARchGL.Platform.EntityFrameworkCore;

namespace ARchGL.Platform.Mappings.Juneng
{
    public class DrawingMapping : IEntityTypeConfiguration<ProjectDrawings>
    {
        public void Configure(EntityTypeBuilder<ProjectDrawings> builder)
        {
            //builder.ToTable(MappingConsts.Prefix + nameof(Drawings));

            builder.Property(p => p.Name).HasMaxLength(100);
            //builder.Property(p => p.Url).HasMaxLength(255);
            builder.Property(p => p.CreatorUserName).HasMaxLength(64);
        }
    }
}
